package com.download.web.entity.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * @description: 评论列表model
 * @author: cmy
 * @create: 2019-02-28 19:03
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class CommentModel {
    private Integer commentId;
    //评论内容
    private String content;
    //评论用户id
    private String userId;
    //评论时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;
    //上级评论id
    private String parentId;
    //评论的文章id
    private String articleId;
    //用户名
    private String userName;
    //用户头像
    private String userImg;

    //回复评论
    private List<CommentModel> commentReply;
    //评论回复数量
    private Integer commentReplySize;

}
